import ReactQuill from "react-quill";
import "react-quill/dist/quill.snow.css";
import {useState} from "react";
import './index.less'

const RichText = () => {
    const [value, setValue] = useState('')
    const emitEditorData = (content: any) => {
        console.log(content)
    };

    const codeString = '';
    return (<div className={"rich-text"}>
        <div className="main-content">

            <ReactQuill
                style={{height:" 100%"}}
                placeholder="Type and share..."
                theme="snow"
                value={value}
                onChange={(content, delta, editor) => {
                    emitEditorData(content);
                }}
            />
        </div>
    </div>)
}
export default RichText
